home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks5 / AppKit.framework / Headers / NSNibLoading.h < prev    next >
Encoding:
Text File  |  1994-09-29  |  988 b   |  27 lines

  1. /*
  2.     NSNibLoading.h
  3.     Application Kit
  4.     Copyright (c) 1994 NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7.  
  8. #import <Foundation/NSBundle.h>
  9.  
  10. @class NSString, NSDictionary;
  11.  
  12. @interface NSBundle(NSNibLoading)
  13.  
  14. + (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone;
  15.     /* This is the primitive that loads the contents of a .nib file.  Context holds key value pairs that can name objects that are referenced by the objects within the nib file (e.g., "NSOwner").  Objects from the nib are allocated in zone. */
  16.  
  17. + (BOOL)loadNibNamed:(NSString *)aNibName owner:(id)owner;
  18.    /* A cover method where an external name table is created with owner as the only element with key "NSOwner".  Objects from the nib are allocated in owner's zone. If there is a bundle for owner's class, this method looks in that bundle for a nib with the given file name.  Otherwise, it looks in the mainBundle. */
  19.  
  20. @end
  21.  
  22.  
  23. @interface NSObject(NSNibAwaking)
  24. - awakeFromNib;
  25. @end
  26.  
  27.